// 查询全量的权限信息
export default defineEventHandler(async () => {
  const res_list = await PermissionSchema.find({}).lean();
  return {
    data: res_list,
  };
});
